class Administrator
  attr_reader :id, :login, :passwordmd5
  attr_accessor :id, :login, :passwordmd5
  def initialize(id, login, passwordmd5)
    @id=id
    @login=login
    @passwordmd5=passwordmd5
  end
end

def administrator_login_check(login, password, administrators)
  administrators.each do |administrator|
    if administrator.login==login && administrator.passwordmd5 == password
      return administrator
      puts "bb"
      break
    end
    puts password
  end
  false
end